Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose ui point radii to logging & blueprint, remove old default radius settings in favor of blueprint default components #6678

Merged
merged 30 commits into from
Jul 2, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jun 28, 2024

What

Screen.Recording.2024-06-28.174328.mp4

Also cleans up all the way down to re_renderer, removing the special auto size values we used to check for at rendering time.

Adds 4 new code snippets: ui vs scene radius for point2d/point3d/line2d/line3d. It can be used with even more components but this should be enough to make it discoverable

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@Wumpf Wumpf added 🔺 re_renderer affects re_renderer itself 🍏 primitives Relating to Rerun primitives include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages labels Jun 28, 2024
Copy link

github-actions bot commented Jun 28, 2024

Deployed docs

Commit Link
9f5d8c5 https://landing-ei8alavip-rerun.vercel.app/docs

Base automatically changed from andreas/only-apply-change-on-input to main June 28, 2024 16:45
An error occurred while trying to automatically change base from andreas/only-apply-change-on-input to main June 28, 2024 16:45
@Wumpf Wumpf force-pushed the andreas/expose-negative-radii branch from 13b69c6 to 21aa36f Compare July 1, 2024 09:54
@Wumpf Wumpf marked this pull request as ready for review July 1, 2024 12:48
@Wumpf Wumpf force-pushed the andreas/expose-negative-radii branch from 283865f to 776a153 Compare July 1, 2024 13:02
@emilk emilk self-requested a review July 1, 2024 13:12
Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice to get rid of the old explicit defaults from the shader!


This is very surprising and annoying behavior:
units-flip

It should be solvable if we take care to treat -0 different from +0 in the UI and accessors

crates/re_edit_ui/src/radius.rs Show resolved Hide resolved
crates/re_edit_ui/src/radius.rs Outdated Show resolved Hide resolved
crates/re_renderer/src/point_cloud_builder.rs Outdated Show resolved Hide resolved
crates/re_renderer/src/size.rs Outdated Show resolved Hide resolved
// When we change the type of units,the value is likely going to be _very wrong_.
// Unfortunately, we don't have knowledge of a fallback here, so we to hardcoded "reasonable" values.
if is_scene_units {
abs_value = 0.5;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to be able to use the auto_size_world_heuristic somehow, but I guess that's a hard ask

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah 100% and it would indeed be a very complicated/annoying wire to put in. That's what I meant above with not being able to access a fallback (fallbacks have this kind of context sensitive information)

crates/re_types/src/components/radius_ext.rs Outdated Show resolved Hide resolved
crates/re_types/src/components/radius_ext.rs Outdated Show resolved Hide resolved
crates/re_types/src/components/radius_ext.rs Outdated Show resolved Hide resolved
rerun_py/rerun_sdk/rerun/components/radius_ext.py Outdated Show resolved Hide resolved
crates/re_types/src/components/radius_ext.rs Outdated Show resolved Hide resolved
@Wumpf
Copy link
Member Author

Wumpf commented Jul 1, 2024

image

Fixed -0/+0 distinction!

@Wumpf
Copy link
Member Author

Wumpf commented Jul 1, 2024

@rerun-bot full-check

Copy link

github-actions bot commented Jul 1, 2024

@Wumpf
Copy link
Member Author

Wumpf commented Jul 1, 2024

point2d_ui_radius roundtrip failed, don't merge

@Wumpf Wumpf added the do-not-merge Do not merge this PR label Jul 1, 2024
crates/re_renderer/src/size.rs Outdated Show resolved Hide resolved
crates/re_types/src/components/radius_ext.rs Outdated Show resolved Hide resolved
@Wumpf
Copy link
Member Author

Wumpf commented Jul 2, 2024

@rerun-bot full-check

Copy link

github-actions bot commented Jul 2, 2024

@Wumpf Wumpf removed the do-not-merge Do not merge this PR label Jul 2, 2024
@Wumpf Wumpf merged commit 29eb75a into main Jul 2, 2024
72 of 74 checks passed
@Wumpf Wumpf deleted the andreas/expose-negative-radii branch July 2, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages 🍏 primitives Relating to Rerun primitives 🔺 re_renderer affects re_renderer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose ui based radii, remove view default radius setting
2 participants